<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>学员信息管理</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
	<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>

	<script type="text/javascript" src="../plugins/angularjs/angular.min.js"></script>
	
	<!--分页组件  -->
		<script type="text/javascript" src="../plugins/angularjs/pagination.js"></script>
		<link rel="stylesheet" href="../plugins/angularjs/pagination.css">
	<!--分页结束  -->
    
    <script type="text/javascript" src="../js/base_pagination.js"></script>
   	<script type="text/javascript" src="../plugins/layer/layer.js"></script>  	
    <script type="text/javascript" src="../js/service/studentService.js"></script>
    <script type="text/javascript" src="../js/controller/studentController.js"></script>
    <script type="text/javascript" src="../js/controller/resultController.js"></script>
    
</head>
<body class="hold-transition skin-red sidebar-mini" ng-app="maiworld" ng-controller="studentController" >
  <!-- .box-body -->
                    <div class="box-header with-border">
                        <h3 class="box-title">学员信息管理</h3>
                    </div>

                    <div class="box-body">

                        <!-- 数据表格 -->
                        <div class="table-box">

                            <!--工具栏-->
                            <div class="pull-left">
                                <div class="form-group form-inline">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-default" title="新建" data-toggle="modal" data-target="#editModal" ng-click="entity={}"><i class="fa fa-file-o"></i> 新建</button>
                                        <button type="button" class="btn btn-default" title="删除" ng-click="dele()"><i class="fa fa-trash-o"></i> 删除</button>           
                                        <button type="button" class="btn btn-default" title="刷新" onclick="window.location.reload();"><i class="fa fa-refresh"></i> 刷新</button>
                                    </div>
                                </div>
                            </div>
                            <div class="box-tools pull-right">
                                <div class="has-feedback">
                                                                                   学习状态: 
						      			<select style="width:150px" ng-model="searchEntity.studyStatus">
											<option value="0">未报名</option>
											<option value="1">科一</option>
											<option value="2">科二</option>
											<option value="3">科三</option>
											<option value="4">科四</option>
											<option value="5">领证</option>
											<option value="6">无限制</option>
										</select>
							        真实姓名:<input ng-model="searchEntity.name"> 学员手机号:<input ng-model="searchEntity.phone">						    
							          <!-- 所属分校：<input ng-model="searchEntity.status"> -->
							          <button class="btn btn-default" ng-click="reloadList()">查询</button>
							                                         
                                </div>
                            </div>
                            <!--工具栏/-->

			                  <!--数据列表-->
			                  <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
			                      <thead>
			                          <tr>
			                              <th class="" style="padding-right:0px">
			                                  <input id="selall" type="checkbox" class="icheckbox_square-blue">
			                              </th> 
										  <th class="sorting_asc">ID</th>
										  <th class="sorting">微信头像</th>
									      <th class="sorting">真实姓名</th>									      
									      <th class="sorting">性别</th>
									      <th class="sorting">身份证</th>
									      <th class="sorting">学员身份</th>
									      <th class="sorting">学员手机号</th>
									      <th class="sorting">金币</th>
									      <th class="sorting">学习状态</th>
									      <th class="sorting">所属分校</th>
									      <th class="sorting">创建时间</th>
									      <th class="sorting">驾驶证图片</th>
									      <th class="sorting">驾驶证图片</th>
			                     		  <th class="text-center">操作</th>
			                     		  <th class="sorting">短信发送</th>
			                          </tr>
			                      </thead>
			                      <tbody>
			                          <tr ng-repeat="entity in list">
			                              <td><input  type="checkbox" ng-click="updateSelection($event, entity.sid)"></td>			                              
				                          <td>{{entity.sid}}</td>
				                          <td>
		                                   		<img ng-src="{{entity.headPic}}" style="width:50px;"></img>
		                                   </td>
									      <td>{{entity.name}}</td>									     
		                                  <td>
		                                  	<span ng-show="entity.sex =='0'">男</span>
		                                  	<span ng-show="entity.sex =='1'">女</span>                                
		                                  </td>
		                                  <td>{{entity.cardId}}</td>
		                                  <td>
		                                  	<span ng-show="entity.isVip =='0'">普通</span>
		                                  	<span ng-show="entity.isVip =='1'">VIP</span>
		                                  </td>
		                                  <td>{{entity.phone}}</td>
		                                  <td>{{entity.points}}</td>
		                                  <td>
		                                  	<span ng-show="entity.studyStatus =='0'">未报名</span>
		                                  	<span ng-show="entity.studyStatus =='1'">科一</span>
		                                  	<span ng-show="entity.studyStatus =='2'">科二</span>
		                                  	<span ng-show="entity.studyStatus =='3'">科三</span>
		                                  	<span ng-show="entity.studyStatus =='4'">科四</span>
		                                  	<span ng-show="entity.studyStatus =='5'">领证</span>
		                                  	<span ng-show="entity.studyStatus =='6'">无限制</span>  		                                  
		                                 </td>
		                                  <td>
		                                  	<span ng-repeat="item in schoolList" ng-if="item.id == entity.status" >{{item.name}}</span>
		                                  </td>  
		                                  <td>{{entity.created}}</td> 
		                                  <td>
		                                   		<img ng-src="{{entity.imgurl1}}" style="width:50px;"></img>
		                                   </td>
		                                   <td>
		                                   		<img ng-src="{{entity.imgurl2}}" style="width:50px;"></img>
		                                   </td>                               		                                  		                                 
		                                  <td class="text-center">                                           
		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModal" ng-click="findOne(entity.sid)" >修改</button>                                           
		                                  </td>
		                                  <td>
				                       		  <button type="button" class="btn btn-primary"  ng-click="updatePass(answerFb.id,answerFb.pass)">{{answerFb.pass=='0'?'通知':'已通知'}}</button>
				                       	  </td>
			                          </tr>
									  
			                      </tbody>
			                  </table>
			                  <!--数据列表/-->                        
							  
							 <!-- 分页 -->
									<tm-pagination conf="paginationConf"></tm-pagination>
								
                        </div>
                        <!-- 数据表格 /-->
                        
                        
                        
                        
                     </div>
                    <!-- /.box-body -->
         
<!-- 编辑窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" >
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">学员信息编辑</h3>
		</div>
		<div class="modal-body">		
			<table class="table table-bordered table-striped"  width="800px">
		      	<tr>
		      		<td>真实姓名</td>
		      		<td><input  class="form-control" placeholder="真实姓名" ng-model="entity.name" >  </td>
		      	</tr>		      	
		      	<tr>
		      		<td>学习状态</td>
		      		<td> 
		      			<select class="form-control" ng-model="entity.studyStatus">
							<option value="0">未报名</option>
							<option value="1">科一</option>
							<option value="2">科二</option>
							<option value="3">科三</option>
							<option value="4">科四</option>
							<option value="5">领证</option>
							<option value="6">无限制</option>
						</select>
		      		</td>
		      	</tr>
		      	<tr>
		      		<td>身份证</td>
		      		<td><input  class="form-control" placeholder="身份证" ng-model="entity.cardId">  </td>
		      	</tr>
		      	<tr>
		      		<td>金币数</td>
		      		<td><input  class="form-control" placeholder="金币数" ng-model="entity.points">  </td>
		      	</tr>	
		      	<tr>
		      		<td>学员手机号</td>
		      		<td><input  class="form-control" placeholder="学员手机号" ng-model="entity.phone">  </td>
		      	</tr>				
		   <!--    	 <tr>
		      		<td>所属分校</td>
		      		 <td> 
		      			<select class="form-control" ng-model="entity.status">
							<option value="0">选择所属分校</option>
							<option ng-repeat="item in schoolList" value="{{item.id}}">{{item.name}}</option>
						</select>
		      		
		      		  </td> 
		      	</tr>  -->
		      		
		      			      		   
		      	   	
			 </table>				
		</div>
		<div class="modal-footer">						
			<button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="save()">保存</button>
			<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	  </div>
	</div>
</div>
   
</body>
</html>